home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11401 < prev    next >
Encoding:
Text File  |  2002-07-05  |  4.0 KB  |  141 lines

  1. <HTML>
  2. <HEAD>
  3. <link rel="stylesheet" type="text/css" href="%1css/default.css">
  4. </HEAD>
  5.  
  6. <BODY onload="checkUnlimited();">
  7.  
  8. <script language="Javascript">
  9. //LOCALIZATION STRINGS
  10. var _strUnlimited = "(unlimited)";
  11. var _errDir = "The value for Location of Temp Files cannot be empty.";
  12. var _errMaxThreads = "The value for Maximum Simultaneous Processing Threads must be a number.";
  13. var _errMaxIdleTime = "The value for Minutes Before an Idle Job is Closed must be a number.";
  14. var _strApply = "The server will be restarted if you continue.  This operation might take a while.  Continue?";
  15. </script>
  16.  
  17. <SCRIPT LANGUAGE="JavaScript" SRC="%2js/FormChek.js"></SCRIPT>
  18.  
  19. <DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;z-index:99;"></DIV>
  20.  
  21. <SCRIPT language="Javascript" SRC="%9js/helps.js"></SCRIPT>
  22. <SCRIPT language="Javascript" SRC="%10js/tips.js"></SCRIPT>
  23.  
  24. <SCRIPT language=JavaScript>
  25. function onApply()
  26. {
  27.     if(confirm(_strApply))
  28.     {
  29.         document.adminForm.submitType.value = "restart";
  30.         onOK();
  31.     }
  32. }
  33.  
  34. function onOK()
  35. {
  36.     // get the data
  37.     var dir = document.adminForm.dir.value;
  38.     var maxthreads = document.adminForm.maxthreads.value;
  39.     var maxidletime = document.adminForm.maxidletime.value;
  40.  
  41.     // validate data
  42.     if(isEmpty(dir))
  43.     {
  44.         document.adminForm.dir.focus();
  45.         alert(_errDir);
  46.         return;
  47.     }
  48.     if(!document.adminForm.maxthreadsunlimited.checked)
  49.     {
  50.         if(!isInteger(maxthreads))
  51.         {
  52.             document.adminForm.maxthreads.focus();
  53.             alert(_errMaxThreads);
  54.             return;
  55.         }
  56.     }
  57.     if(!isInteger(maxidletime))
  58.     {
  59.         document.adminForm.maxidletime.focus();
  60.         alert(_errMaxIdleTime);
  61.         return;
  62.     }
  63.  
  64.     // submit the data
  65.     document.forms['adminForm'].submit();
  66. }
  67.  
  68. function onReset()
  69. {
  70.     document.forms['adminForm'].reset();
  71.     checkUnlimited();
  72. }
  73.  
  74. function checkUnlimited()
  75. {
  76.     if(document.adminForm.maxthreadsunlimited.checked)
  77.     {
  78.         document.adminForm.maxthreads.value = _strUnlimited;
  79.         document.adminForm.maxthreads.disabled = true;
  80.     }
  81.     else
  82.     {
  83.         if(document.adminForm.maxthreads.value == _strUnlimited)
  84.             document.adminForm.maxthreads.value = "";
  85.         document.adminForm.maxthreads.disabled = false;
  86.         document.adminForm.maxthreads.focus();
  87.     }
  88. }
  89. </SCRIPT>
  90.  
  91. <!-- message -->
  92. <CENTER>
  93. <b>%8</b>
  94. </CENTER>
  95.  
  96. <!-- page content -->
  97. <CENTER>
  98. <FORM action="%3" method="post" name="adminForm" target="_self">
  99.  
  100. <TABLE width=95% cellpadding=4 cellspacing=4>
  101. <TR>
  102. <TD class="list" align=left>Location of Temp Files:</TD>
  103. <TD class="list" align=left><INPUT type=text size="45" name="dir" value="%4"></TD>
  104. </TR>
  105. <TR>
  106. <TD class="list" align=left>Maximum Simultaneous Processing Threads:</TD>
  107. <TD class="list" align=left><INPUT type=text size="10" name="maxthreads" value="%5">
  108. <INPUT type=checkbox name="maxthreadsunlimited" onclick="checkUnlimited();" value="" %6>Unlimited</TD>
  109. </TR>
  110. <TR>
  111. <TD class="list" align=left>Minutes Before an Idle Job is Closed:</TD>
  112. <TD class="list" align=left><INPUT type=text size="10" name="maxidletime" value="%7"></TD>
  113. </TR>
  114.  
  115. <TR><TD colspan=2> </TD></TR>
  116.  
  117. <TR>
  118. <TD colspan=2 align=right>
  119. <table border=0 cellpadding=0>
  120. <tr valign=center>
  121. <td class="clsButton" align=middle nowrap><div class="clsButton">
  122. <a href="javascript:onApply();" onMouseOver="St(89);window.status='';return true;" onMouseOut="Ht()">Apply</a></div></td>
  123.  
  124. <td class="clsButton" align=middle nowrap><div class="clsButton">
  125. <a href="javascript:onOK();" onMouseOver="St(88);window.status='';return true;" onMouseOut="Ht()">Update</a></div></td>
  126.  
  127. <td class="clsButton" align=middle nowrap><div class="clsButton">
  128. <a href="javascript:onReset();" onMouseOver="St(18);window.status='';return true;" onMouseOut="Ht()">Reset</a></div></td>
  129. </tr>
  130. </table>
  131. </TD>
  132. </TR>
  133. </TABLE>
  134.  
  135. <INPUT type=hidden name="submitType" value="update">
  136.  
  137. </FORM>
  138. </CENTER>
  139. </BODY>
  140. </HTML>
  141.